﻿using PHMEE.Constants;
using PHMEE.EnergyEfficiency;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace PHMEE
{
    /// <summary>
    /// 操作船上缓存数据
    /// </summary>
    public interface IRealTimeAppService : IApplicationService
    {
        /// <summary>
        /// 获取缓存中GPS信息
        /// </summary>
        /// <returns></returns>
        Task<GpsRealtimeDto> GetGpsCacheDataAsync();
        /// <summary>
        /// 获取每个流量计的数据用于展示
        /// </summary>
        /// <param name="VesselId">船舶id</param>
        /// <param name="onVessel">船端还是岸端</param>
        /// <returns></returns>
        Task<List<MassFlowmeterDto>> GetFlowmeterDataAsync(Guid VesselId, bool onVessel);

        /// <summary>
        /// 根据船舶id获取主机，副机，锅炉等数据
        /// </summary>
        /// <param name="VesselId"></param>
        /// <returns></returns>
        Task<List<DeviceFuelConsumptionDto>> GetOilFuelDataAsync(Guid VesselId);
    }
}
